<div class="page dashboard">
	<div class="container">
		<div class="row">
				<ul class="span3 nav nav-list menu-sidebar">
					<div style="margin-bottom:10px;" >Selamat Datang, <?php echo anchor(site_url('admin/dashboard'), $this->session->userdata('username')); ?></div>
					<li class=""><?php echo anchor(site_url('admin/profil/form_update_user/'.$this->session->userdata('user_id')),'Edit Profil');?></li>
					<li class=""><?php echo anchor(site_url('admin/listing'),'Kelola Properti');?></li>
					<?php if($level_user == 1){ ?>
					<li class=""><?php echo anchor(site_url('admin/profil'),'Kelola Agen');?></li>
					<li class=""><?php echo anchor(site_url('admin/artikel'),'Kelola Artikel');?></li>
					<li class=""><?php echo anchor('http://localhost/artyproperty/editor/properti_baru.php','Kelola Properti Baru');?></li>
					<?php } ?>
				</ul>
			
			<div class="span9 detail-profil">
				<legend><h5>Selamat Datang, <?php echo ucfirst($output['agen']['nama_depan']).' '.ucfirst($output['agen']['nama_belakang']);?></h5></legend>
				<div class="row">
					<div class="span2">
						<?php 
                            $url = "";
                            if($output['agen']['picture']!=""){
                                $url = base_url().'pictures/user/thumb/'.$output['agen']['picture'];
                            } else {
                                $url = base_url().'assets/img/default_profile.png';
                            }
                        ?>
                            <img src="<?php echo $url; ?>" class="img-polaroid">
                            <a href="<?php echo site_url('admin/profil/avatar'); ?>">Update Foto Avatar</a>
                            <div class="fileinput fileinput-new" data-provides="fileinput">
							  <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">
							    <img data-src="holder.js/100%x100%" alt="...">
							  </div>
							  <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;"></div>
							  <div>
							    <span class="btn btn-default btn-file"><span class="fileinput-new">Select image</span><span class="fileinput-exists">Change</span><input type="file" name="..."></span>
							    <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
							  </div>
							</div>

					</div>
					<div class="span3">
						<p> <strong>Akun Agen - Paket 1 </strong><br/>
							Sampai 30 Juni 2014 <br/>
							<p>Listing aktif: <?php echo $output['agen']['jml_listing']; ?></p>
							<a href="">Upgrade Akun</a>
						</p>
					</div>
					<div class="span4">
						<strong>Ativitas Saya </strong>
					</div>
				</div>
				<div class="row">
					<div class="span12">
						Perusahaan : <?php echo $output['perusahaan']['nama']; ?>
					</div>
				</div>
				<br/>
				<legend><h4>Pengumuman</h4></legend>
			</div>
		</div>
	</div>
</div>